public class jiaohuan {
    public static void main(String[] args) {
        int [] nums ={1,2,3};
        int temp =nums[0];
        nums[0]=nums[2];
        nums[2]=temp;
        for (int i = 0; i < nums.length; i++) {
            System.out.print(nums[i]+" ");
        }

    }
}
